#include "xyz.h"

float xyz_distance(struct xyz * a, struct xyz * b) {
  float x, y, z;
  x = a->x - b->x;
  y = a->y - b->y;
  z = a->z - b->z;
  x*=x;
  y*=y;
  z*=z;

  return (float)sqrt(x+y+z);

}
